home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
cujaug93.zip
/
1108118B
< prev
next >
Wrap
Text File
|
1993-05-23
|
290b
|
21 lines
1: class X
2: {
3: int i;
4: static int k;
5: public:
6: enum { MAX = 100 };
7: X();
8: void reset() { k = MAX; }
9: };
10:
11: const int MIN = 0;
12:
13: void X::X() : i(MAX)
14: {
15: if (--k <= MIN)
16: reset();
17: }
18:
19: int X::k = MAX;